﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AttributesExercise
{
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
    public class VersionAttribute : System.Attribute
    {
        private string version;
        private string comment;

        public VersionAttribute()
            : this(null, null) { }

        public VersionAttribute(string version, string comment)
        {
            this.version = version;
            this.comment = comment;
        }

        public VersionAttribute(string version)
        {
            this.version = version;
            this.comment = null;
        }

        public string Comment
        {
            get
            {
                return comment;
            }
            set
            {
                comment = value;
            }
        }

        public string Version
        {
            get
            {
                return version;
            }
            set
            {
                version = value;
            }
        }
    }
}
